//
//  TGSignPreview.h
//  TongGuanLease
//
//  Created by 张奇 on 2022/6/30.
//

#import <UIKit/UIKit.h>
#import "IMYWebView.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^FinishReloadBlockComplemention)(CGFloat webviewHeight);

@protocol TGSignPreviewDelegate <NSObject>

- (void)signPreviewFinishLoadingWithHeight:(CGFloat)height;

@end


@interface TGSignPreview : UIView

@property (nonatomic, strong) IMYWebView *webView;

- (instancetype)initWithLinkStr:(NSString *)linkStr
              finishReloadBlock:(FinishReloadBlockComplemention)finishReloadBlock;

- (instancetype)initWithLinkStr:(NSString *)linkStr delegate:(id<TGSignPreviewDelegate>)delegate;


@end

NS_ASSUME_NONNULL_END
